package study.javaee.practice.dao;

import study.javaee.practice.entity.JpaUnit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface JpaUnitDAO extends JpaRepository<JpaUnit,Integer>{

    @Query("select u from JpaUnit u where u.name = ?1")
    JpaUnit findByName(String name);
}
